package com.aqie.libfactory.model.api.websocket;

import com.aqie.libfactory.model.IMessage;

import androidx.databinding.BaseObservable;

/**
 * {"message":{"msg":"1","msgId":"1365989042442801154","senderId":"1359794072186822658",
 * "receiverId":"1355421699175165954"},"action":2}
 * @author aqie
 * @date 2021/2/15 10:45
 */
public class MessageDTO extends BaseObservable implements IMessage {
    /**
     * senderId :
     * receiverId :
     * msg :
     * msgId :
     */

    private String senderId;
    private String receiverId;
    private String msg;
    private String msgId;
    private int status;

    @Override
    public int getStatus() {
        return status;
    }

    @Override
    public void setStatus(int status) {
        this.status = status;
    }

    public String getSenderId() {
        return senderId;
    }

    public void setSenderId(String senderId) {
        this.senderId = senderId;
    }

    public String getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(String receiverId) {
        this.receiverId = receiverId;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    @Override
    public String toString() {
        return "MessageDTO{" +
                "senderId='" + senderId + '\'' +
                ", receiverId='" + receiverId + '\'' +
                ", msg='" + msg + '\'' +
                ", msgId='" + msgId + '\'' +
                '}';
    }
}
